package com.st.mall.scart.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.st.mall.scart.mapper.IScartMapper;
import com.st.mall.scart.model.ScartModel;
import com.st.mall.scart.service.IScartService;

@Service
public class ScartServiceImppl implements IScartService {

	@Autowired
	private IScartMapper mapper;

	@Override
	public int insert(ScartModel scartModel) {
		// TODO Auto-generated method stub
		return mapper.insert(scartModel);
	}

	@Override
	public ScartModel selectOne(ScartModel scartModel) {
		// TODO Auto-generated method stub
		return mapper.selectOne(scartModel);
	}

	@Override
	public int update(ScartModel scartModel) {
		// TODO Auto-generated method stub
		return mapper.update(scartModel);
	}

	@Override
	public int delete(String proCode) {
		// TODO Auto-generated method stub
		return mapper.delete(proCode);
	}

	@Override
	public List<ScartModel> selectAll(ScartModel scartModel) {
		// TODO Auto-generated method stub
		return mapper.selectAll(scartModel);
	}
	
	
}
